-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: skip replication to proxy cache project #16286
fix: skip replication to proxy cache project #16286
Conversation
Codecov Report
@@ Coverage Diff @@
## main #16286 +/- ##
==========================================
+ Coverage 67.18% 67.35% +0.17%
==========================================
Files 945 946 +1
Lines 78191 78660 +469
Branches 2315 2315
==========================================
+ Hits 52536 52985 +449
- Misses 22143 22163 +20
Partials 3512 3512
Flags with carried forward coverage won't be shown. Click here to find out more.
|
f36fc58
to
6a99261
Compare
6a99261
to
f514784
Compare
@@ -182,9 +182,14 @@ func (a *Adapter) PrepareForPush(resources []*model.Resource) error { | |||
return errors.Wrapf(err, "list projects with query %s", q) | |||
} | |||
|
|||
proxyCacheProjects := make(map[string]*Project) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make(map[string]bool) is enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Signed-off-by: chlins <chenyuzh@vmware.com>
f514784
to
b1afd2e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Fixes: #15155
Signed-off-by: chlins chenyuzh@vmware.com